#include <stdio.h>

void bubblesort(int arr[],int size){
	int temp = 0;
	for(int i=0;i<size-1;i++){
		for(int j=0;j<size-1-i;j++){
			if(arr[j]>arr[j+1]){
				temp=arr[j];
				arr[j]=arr[j+1];
				arr[j+1]=temp;
			}
		}
	}
	for(int k=0;k<size;k++){
		printf("%d ",arr[k]);
	}
}
int main(void)
{
	int arr1[] = {9,8,4,54,45,4,15};
	bubblesort(arr1,sizeof(arr1)/sizeof(arr1[0]));
}
